package com.example.chatchatbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.chatchatbackend.entity.dto.Shopping;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 丁真
 * @since 2024-10-28 05:03:47
 */
@Mapper
public interface ShoppingMapper extends BaseMapper<Shopping> {

    void insertList(List<Shopping> shoppingList);

    List<Shopping> getAll();

    IPage<Shopping> selectAll(Page<Shopping> page, Object o);

    void updateShopping(Shopping shopping);
}
